﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x02000092 RID: 146
	internal class InvalidDouble : IDoubleDecoder
	{
		// Token: 0x0600026B RID: 619 RVA: 0x0000B543 File Offset: 0x00009943
		private InvalidDouble()
		{
		}

		// Token: 0x0600026C RID: 620 RVA: 0x0000B54B File Offset: 0x0000994B
		public double Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000B6 RID: 182
		internal static readonly IDoubleDecoder Instance = new InvalidDouble();
	}
}
